//package com.example.administrator.mymusic;
//
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//import android.util.Log;
//
//import com.example.administrator.mymusic.Class.LrcClass;
//import com.example.administrator.mymusic.Class.MyLrcAdapter;
//import com.example.administrator.mymusic.Class.SongsClass;
//import com.example.administrator.mymusic.zhong.LrcFragment;
//
//import java.util.List;
//
///**
// * Created by Administrator on 2016/4/25.
// */
//public class LrcBroadcastReceiver extends BroadcastReceiver {
//    private List<SongsClass> songsClassList;
//    private List<LrcClass> lrcClassList;
//
//    public LrcBroadcastReceiver(List<SongsClass> songsClassList) {
//        this.songsClassList = songsClassList;
//    }
//
//    @Override
//    public void onReceive(Context context, Intent intent) {
//        int i = intent.getIntExtra("songNum", 0);
//        Log.d("55555", "onReceive: " + i);
//        Log.d("55555", "onReceive: " + songsClassList.get(i).getName());
//        lrcClassList = lrcProcess.readLrc(songsClassList.get(i).getName());
//        MyLrcAdapter myLrcAdapter = new MyLrcAdapter(context, lrcClassList);
////        ZhongFragment zhongFragment = (ZhongFragment) getActivity().getSupportFragmentManager().findFragmentByTag("zhongFragment");
////        LrcFragment lrcFragment = (LrcFragment) zhongFragment.getFragmentList().get(1);
////        lrcFragment.listView.setAdapter(myLrcAdapter);
//        myLrcAdapter.notifyDataSetChanged();
//    }
//}
